package org.myxdb.client;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

import java.net.MalformedURLException;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.List;
import java.util.Map;
import java.util.Vector;

import java.net.URL;

 

import org.apache.xmlrpc.XmlRpcException;

import org.apache.xmlrpc.client.XmlRpcClient;

import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;

import org.myxdb.client.cmdtoken.*;



public class Client{
	
      public static void main(String[] args) {

    	  System.out.println("MyXdb Version 1.0.0");
    	  System.out.println("");
    	  System.out.println("Try 'help' to get information for help.");
    	  System.out.println("For more detailed information, please visit:");
    	  System.out.println("http://www.myxdb.cn");
    	  System.out.println("");
    	  
    	  InputStreamReader ir = new InputStreamReader(System.in);
    	  BufferedReader in = new BufferedReader(ir);
 
    		String console = null;
    		
    		boolean flag = true;
    		
    		xmlrpc.init();
    		
    		do
    		{
    			try {
    				System.out.print("MyXDB>");
    				console=in.readLine().toLowerCase().trim();
    				cmdtoken.token(console);
    			} catch (IOException e) {
    				// TODO Auto-generated catch block
    				e.printStackTrace();
    			}
    		}
    		while(flag);
      }
}
